﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Net.Sockets;

namespace eeb_2012_clientserver_server
{
    // State object for reading client data asynchronously
    public class StateObject
    {
        // Client  socket.
        public Socket workSocket = null;

        public NetworkStream netStream = null;

        // Size of receive buffer.
        public const int BufferSize = 1228803; // 1228803
        // Receive buffer.
        public byte[] buffer = new byte[BufferSize];
        // Received data string.
        public StringBuilder sb = new StringBuilder();

        // ConnectionHandler
        public ConnectionHandler chandler = null;
    }
}
